package org.lyh.repository;

import org.lyh.doc.UserDoc;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * SpringBoot集成es后对UserDoc进行crud的接口，类似于实体类的mapper
 * 继承ElasticsearchRepository即可
 * ElasticsearchRepository<UserDoc, Long>，第一个参数为文档类型，第二个参数为文档类的id的类型
 */
@Repository
public interface UserDocRepository extends ElasticsearchRepository<UserDoc, Long> {
}
